<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>工具箱</title>
    <link rel="stylesheet" href="./font/iconfont.css" />
    <style>
      * {
        margin: 0;
        padding: 0;
        list-style: none;
      }
      i {
        font-style: normal;
      }
      body {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        background: linear-gradient(45deg, deeppink, skyblue);
      }
      .menu {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 400px;
        height: 400px;
        background-color: transparent;
      }
      .btn {
        font-size: 30px;
        z-index: 100;
        width: 60px;
        height: 60px;
        background-color: #fff;
        line-height: 60px;
        text-align: center;
        border-radius: 50%;
        cursor: pointer;
        transition: all 1.25s;
      }
      .menu span {
        width: 40px;
        height: 40px;
        background-color: transparent;
        position: absolute;
        left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        cursor: pointer;
        transform-origin: 200px; /* 父容器宽度一半 */
        transition-delay: calc(0.1s * var(--i));
        transition: 0.5s;
        transform: rotate(0deg) translateX(170px);
      }
      .menu:hover span {
        transform: rotate(calc(360deg / 8 * var(--i)));
      }
      .menu span i {
        transform: rotate(calc(360deg / -8 * var(--i)));
      }
      .menu:hover .btn {
        transform: rotate(360deg);
      }
    </style>
  </head>
  <body>
    <div class="menu">
      <div class="btn">+</div>
      <span style="--i: 0"><i class="iconfont icon-chanquansousuo"></i></span>
      <span style="--i: 1"><i class="iconfont icon-ganbudangan"></i></span>
      <span style="--i: 2"><i class="iconfont icon-lingdaoricheng"></i></span>
      <span style="--i: 3"><i class="iconfont icon-chanquanguanli"></i></span>
      <span style="--i: 4"><i class="iconfont icon-shujubaobiao"></i></span>
      <span style="--i: 5"><i class="iconfont icon-shujuweihu"></i></span>
      <span style="--i: 6"><i class="iconfont icon-renliziyuan"></i></span>
      <span style="--i: 7"><i class="iconfont icon-chanquansousuo"></i></span>
    </div>
  </body>
</html>
